package org.example;

import java.io.IOException;

public class Main {
    public static void main(String[] args) {
//        System.out.println("Hello world!");

        //封装调用
        Demo03 demo03 = new Demo03();
        demo03.setA(100);
        System.out.println(demo03.getA());
//        int a = demo03.getA();
//        System.out.println(a);
    }
    //无参无返回值
    void m1(){

    }
    //有参有返回值
    public int m2(int a){
        return 0;
    }
    //受保护的，返回String,方法名m3，返回int a…，抛出IOException
    protected String m3(int a,double b) throws IOException {
        return "";
    }

}